//package com.sansi.bleFloodlight.aspect;
//
//import com.my.httpapi.api.baseUtils.Toast;
//
//import org.aspectj.lang.ProceedingJoinPoint;
//import org.aspectj.lang.annotation.Around;
//import org.aspectj.lang.annotation.Aspect;
//import org.aspectj.lang.annotation.Pointcut;
//
//@Aspect
//public class ErrorAspect {
//    private static final String POINTCUT_METHOD = "execution(@com.sansi.bleFloodlight.aop.annotation.Error * *(..))";
//
//
//    @Around("onErrorMethod()")
//    public void doErrorMethod(final ProceedingJoinPoint joinPoint) throws Throwable {
//        errorMethod(joinPoint);
//    }
//
//    @Pointcut(POINTCUT_METHOD)
//    private void onErrorMethod() {
//    }
//
//    private void errorMethod(final ProceedingJoinPoint joinPoint) throws Throwable {
//        try {
//            joinPoint.proceed();
//        } catch (Exception e) {
//            Toast.show(e.getMessage());
//        }
//
//    }
//}
